<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <? include_once("../controller/detail-list.php"); ?>
    <? include_once(ROOT_PATH_ . "/controller/common/module/head.php"); ?>

    <?php include 'module/head.php'; ?>
</head>





<body>

<div id="topbar">     <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?> </div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?>
        </div>




<div id="content">


    <?php $page_title='联系人列表';?>
    <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>




    <?php include 'module/mod-search.php'; ?>





<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">




<div class="list-boxes layui-form">



<table class="layui-table">
  <colgroup>
    <col width="120">
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col width="80">

  </colgroup>
  <thead>
    <tr>
      <th>姓名</th>
      <th>职位</th>
        <th>企业</th>
        <th>电话</th>
      <th>邮箱</th>
      <th>标签</th>
      <th>评级</th>
      <th>下次联系</th>
      <th>来源</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>



<?php
for ($i = 0; $i < $detailnum; $i++) {
?>


<!--//查看这条信息有无修改申请，有的话就变色，提示修改中-->
<? $applymodify=select_one_line_all_items($table_Prefix."member","sid='".$detail[$i]['nid']."' and applystatus='申请修改'") ;?>


<tr id="item<?echo $detail[$i]['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>



<td style="color:<?if($detail[$i]['gender']=="男"){echo "#1e9fff";}else{echo "#ff1e7b";}?>">
    <?echo $detail[$i]['name']?>
    <span >
        <?if($detail[$i]['gender']=="男"){?>
        <i class="fa fa-male" aria-hidden="true">  </i>
        <?}else{?>
        <i class="fa fa-female" aria-hidden="true"></i>
        <?}?>
    </span>
</td>

    <td><?echo $detail[$i]['position']?></td>
    <td><?echo $unit_name_list[$detail[$i]['unitnid']]?></td>


<td><?echo $detail[$i]['phone']?></td>
<td><?echo $detail[$i]['email']?></td>
<td><?echo $detail[$i]['tag']?></td>
<td><?echo $detail[$i]['rank']?></td>
<td><?echo substr($detail[$i]['checkpoint'],0,10)?>  /
    <span style="background-color: <? if(count_days(date("Y-m-d"),$detail[$i]['checkpoint']) < 15 ) { echo "red";}?>">
        <?echo count_days(date("Y-m-d"),$detail[$i]['checkpoint'])?> 日
    </span>
</td>

<td><?echo $detail[$i]['source']?></td>




<td>





        <a href="detail-edit.php?nid=<? echo $detail[$i]['nid']?><?echo $pagenumber_url.$sortby_url.$now_extender.$term_nid ?>"
           class="layui-btn   layui-btn-sm" >
            <i class="fa fa-file-text-o" aria-hidden="true"></i>
            信息
        </a>


<!--**
<a href="javascript:void(0)" onclick="delItem (<?php echo $detail[$i]['nid']?>)"
   class="delete layui-btn  layui-btn-sm" > <i class="layui-icon">&#xe640;</i> 删除 </a>
    <? if(in_array("admin",$quanxian)){?>

    <?}?>
-->


  </td>
    </tr>
<?}?>


  </tbody>
</table>






</div>


<div class="list-box-function"
<? if ($detailnum == 0) {
    echo "style" . "='display:none'";
} ?>
>

    <?php include 'module/page_numbers.php'; ?>

</div>




<!--list-box end-->
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>






<?php include ROOT_PATH_ . '/controller/common/module/footer.php'; ?>

</body>
</html>
